package com.lqq.spring.service.impl;

import com.lqq.spring.dao.UserDao;
import com.lqq.spring.service.UserService;

//业务逻辑层实现类
public class UserServiceImpl implements UserService {

    //声明一个UserDao变量
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void add() {
        System.out.println("UserService调用Dao...");
        userDao.add();
    }
}
